<?php

header('Content-Type:text/html;charset=UTF-8');

@$did = $_REQUEST['did'];

@$id = $_REQUEST['id'];

require 'lib/db.php';

if(!empty($id)){
	dbDelete('delete from object where id=:id',array('id'=>$id));
}

header('Location:main.php?did='.$did);